
package cn.com.czpb.client.model.news;

import java.io.Serializable;

public class NewsPageListBean implements Serializable,Comparable<NewsPageListBean>{
	private static final long serialVersionUID = -8736403233689482029L;
	
	private String title;//title
	private String imgurl;//smallimgurl
	private String newsurl;//连接;
	private String nid;//nid
	private String sort_order;
	private String update_time;
    private String tid;
    private String rtype;
    private String rvalue;
    
    
	public String getTitle() {
		return title;
	}


	public void setTitle(String title) {
		this.title = title;
	}


	public String getImgurl() {
		return imgurl;
	}


	public void setImgurl(String imgurl) {
		this.imgurl = imgurl;
	}


	public String getNewsurl() {
		return newsurl;
	}


	public void setNewsurl(String newsurl) {
		this.newsurl = newsurl;
	}


	public String getNid() {
		return nid;
	}


	public void setNid(String nid) {
		this.nid = nid;
	}


	public String getSort_order() {
		return sort_order;
	}


	public void setSort_order(String sort_order) {
		this.sort_order = sort_order;
	}


	public String getUpdate_time() {
		return update_time;
	}


	public void setUpdate_time(String update_time) {
		this.update_time = update_time;
	}


	public String getTid() {
		return tid;
	}


	public void setTid(String tid) {
		this.tid = tid;
	}


	public String getRtype() {
		return rtype;
	}


	public void setRtype(String rtype) {
		this.rtype = rtype;
	}


	public String getRvalue() {
		return rvalue;
	}


	public void setRvalue(String rvalue) {
		this.rvalue = rvalue;
	}


	@Override
	public int compareTo(NewsPageListBean another) {
		try{
			int i=Integer.parseInt(sort_order);
			int j=Integer.parseInt(another.getSort_order());
			if(i>j){
				return 1;
			}else if(i==j){
				return 0;
			}else{
				 return -1;
			}
		}catch(Exception e){
			
		}
		return 0;
	}

}
